  {php $CATEGORY = cache_read('category-'.$mid.'.php');}
    {php $child = get_maincat(0, $CATEGORY, 1);}
<div class="layout-p32a24">
    <div class="grid-24">
        <div id="categoriesModule" class="mod-categories">
            <h3 class="hide"></h3>
            <div class="content fd-clr">
<!--工业品开始-->
                <div class="category-item fd-clr category-module-commodity">
                    <h4><a title="原材料">原材料</a></h4>
                    <div class="category-content">
                        <ul class="subcategory-list">
                        {loop $child $i $c}
                        {if in_array($c[catid], array(450, 480 , 485 , 495 ,  505 , 515 , 510,  530 ,545))}
                        <li>
                          <h5><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank">{set_style($c[catname], $c[style])}</a></h5>
                          <div>
                        {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
                        {loop $sub $j $s}
                           <A href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" target="_blank">{set_style($s[catname], $s[style])}</A>
                        {/loop}
                        {/if}
                            </div>
                        </li>
                        {/if}{/loop}
                        </ul>
                        <div class="category-correlation">
                            <div class="part-left">
                                <h5>原材料热销货源</h5>
                                <dl class="type-content-list category-info-list fd-clr">
           <!--{php  $addtime = time() - 10*24*3600 ; }-->   
		   <!--{php $tags=tag("moduleid=5&condition=status=3  and addtime<$addtime&pagesize=4&order=addtime desc&template=null");}-->
                                    {loop $tags $k $t}
                                      <dt>[{area_pos($t[areaid], '/', 1)}]</dt><dd><a href="{$t[linkurl]}" target="_blank" title="{$t[alt]}">{$t[title]}</a></dd>
                                    {/loop}
                                </dl>
                            </div>
                            <div class="part-right">
                                <h5>原材料价格行情</h5>
                                <ul>
		   <!--{php $tags=tag("moduleid=7&condition=status=3&pagesize=4&order=addtime desc&template=null");}-->
                                    {loop $tags $k $t}
                                    <li><a href="{$t[linkurl]}" target="_blank" title="{$t[alt]}">{$t[title]}</a></li>
                                    {/loop}
                                </ul>
                            </div>
                        </div>

                    </div>
                </div>
<!--工业品结束-->
<!--消费品开始-->
                <div class="category-item fd-clr category-module-commodity">
                    <h4><a title="消费品">消费品</a></h4>
                    <div class="category-content">
                        <ul class="subcategory-list">
                        {loop $child $i $c}
                        {if in_array($c[catid], array(440, 445 ,460 , 465 , 490 ,  500  ,525 , 555 , 575))}
                        <li>
                          <h5><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank">{set_style($c[catname], $c[style])}</a></h5>
                          <div>
                        {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
                        {loop $sub $j $s}
                           <A href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" target="_blank">{set_style($s[catname], $s[style])}</A>
                        {/loop}
                        {/if}
                            </div>
                        </li>
                        {/if}{/loop}
                        </ul>
                        <div class="category-correlation">
                            <div class="part-left group-info">
                              <h5><a href="#">消费品<strong>热销专场</strong></a></h5>
		   <!--{php $tags=tag("moduleid=5&condition=status=3&pagesize=1&order=addtime desc&template=null");}-->
                     {loop $tags $k $t}
    <dl class="cell-product-3rd group-info-recommendation">
        <dt><a href="{$t[linkurl]}" class="a-img"><img src="{imgurl($t[thumb], 1)}" width="72" height="72"></a></dt>
        <dd class="description"><a href="{$t[linkurl]}">{$t[tag]}</a></dd>
        <dd class="price">{if $t[unit] && $t[price]>0}<span class="fd-cny">&yen;</span> <em class="value">{$t[price]}</em> {else} <em class="value">面议</em> {/if}</dd>
        <dd class="action"><a href="{$t[linkurl]}">点击查看</a></dd>
    </dl>
                      {/loop}
</div>
<div class="part-right">
    <h5>消费品热销货源</h5>
    <dl class="type-content-list category-info-list fd-clr">
           <!--{php  $addtime = time() - 20*24*3600 ; }-->   
		   <!--{php $tags=tag("moduleid=5&condition=status=3   and addtime<$addtime&pagesize=4&order=addtime desc&template=null");}-->
                     {loop $tags $k $t}
                          <dt>[{area_pos($t[areaid], '/', 1)}]</dt><dd><a href="{$t[linkurl]}" target="_blank" title="{$t[alt]}">{$t[title]}</a></dd>
                      {/loop}
            </dl>
</div>                        </div>
                    </div>
                </div>
<!--消费品结束--> 
<!--原材料开始-->               
                <div class="category-item fd-clr category-module-commodity">
                    <h4><a title="工业品">工业品</a></h4>
                    <div class="category-content">
                        <ul class="subcategory-list">
                        {loop $child $i $c}
                         {if in_array($c[catid], array(470 ,560,   580 , 1475  , 1573))}
                        <li>
                          <h5><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank">{set_style($c[catname], $c[style])}</a></h5>
                          <div>
                        {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
                        {loop $sub $j $s}
                           <A href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" target="_blank">{set_style($s[catname], $s[style])}</A>
                        {/loop}
                        {/if}
                            </div>
                        </li>
                        {/if}{/loop}
                        </ul>
                        <div class="category-correlation">
                            <div class="part-left group-info">
                              <h5><a href="#">工业品<strong>热销专场</strong></a></h5>
                              <!--{php  $addtime = time() - 30*24*3600 ; }-->  
		   <!--{php $tags=tag("moduleid=5&condition=status=3 and addtime<$addtime&pagesize=1&order=addtime desc&template=null");}-->
                     {loop $tags $k $t}
    <dl class="cell-product-3rd group-info-recommendation">
        <dt><a href="{$t[linkurl]}" class="a-img"><img src="{imgurl($t[thumb], 1)}" width="72" height="72"></a></dt>
        <dd class="description"><a href="{$t[linkurl]}">{$t[tag]}</a></dd>
        <dd class="price">{if $t[unit] && $t[price]>0}<span class="fd-cny">&yen;</span> <em class="value">{$t[price]}</em> {else} <em class="value">面议</em> {/if}</dd>
        <dd class="action"><a href="{$t[linkurl]}">点击查看</a></dd>
    </dl>
                      {/loop}
</div>
<div class="part-right">
    <h5>工业品热销货源</h5>
    <dl class="type-content-list category-info-list fd-clr">
    		<!--{php  $addtime = time() - 40*24*3600 ; }-->  
		   <!--{php $tags=tag("moduleid=5&condition=status=3 and addtime<$addtime&pagesize=4&order=addtime desc&template=null");}-->
                     {loop $tags $k $t}
                          <dt>[{area_pos($t[areaid], '/', 1)}]</dt><dd><a href="{$t[linkurl]}" target="_blank" title="{$t[alt]}">{$t[title]}</a></dd>
                      {/loop}
            </dl>
</div>                        </div>

                    </div>
                </div>
<!--原材料结束-->                
<!--商业服务开始-->
                <div class="category-item fd-clr category-module-other">
                    <h4><a title="其他">其他</a></h4>
                    <div class="category-content">
                        <ul class="subcategory-list">
                        {loop $child $i $c}
                        {if in_array($c[catid], array(455,475,520,535,540,550,565,570,1581,1632))}
                        <li>
                          <h5><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank">{set_style($c[catname], $c[style])}</a></h5>
                          <div>
                        {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
                        {loop $sub $j $s}
                           <A href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" target="_blank">{set_style($s[catname], $s[style])}</A>
                        {/loop}
                        {/if}
                            </div>
                        </li>
                        {/if}{/loop}
                        
                        </ul>

                    <div class="category-correlation">
                        <div><a class="a-img" href="#"><img src="{DT_SKIN}images/ad/shouye01_1289376486377.jpg"/></a></div>
                            <dl class="type-content-list">
		   <!--{php $tags=tag("moduleid=5&condition=status=3&pagesize=4&order=addtime desc&template=null");}-->
                     {loop $tags $k $t}
                          <dt>[{area_pos($t[areaid], '/', 1)}]</dt><dd><a href="{$t[linkurl]}" target="_blank" title="{$t[alt]}">{$t[title]}</a></dd>
                      {/loop}
                            </dl>
                    </div>
                    </div>
                    
                </div>
<!--商业服务结束-->
            </div>
        </div>
    </div>
</div>